<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/14 014
 * Time: 14:37
 */
namespace App\Command;

class GarageDoorDownCommand implements Command
{
    public $garageDoor;

    public function __construct(GarageDoor $garageDoor)
    {
        $this->garageDoor = $garageDoor;
    }

    public function execute()
    {
        // TODO: Implement execute() method.
        $this->garageDoor->down();
    }

    public function undo()
    {
        // TODO: Implement undo() method.
        $this->garageDoor->up();
    }
}